<template>
  <div>
    <div class="top">
      <nav class="nav">
        <span class="back" @click="$router.go(-1)">&lt;</span>
      </nav>
      <h2>1111</h2>
    </div>
    <div class="banner"><img src="" alt="">轮播</div>
    <div class="content">
        <p>12</p>
        <p>近地铁</p>
    </div>
  </div>
</template>

<script>
import axios from 'axios'

export default {
  name: 'HoustDetail',
  props: {},
  components: {},
  data() {
    return {
      info:null,
    }
  },
   async created(){
    const id=this.$route.query.id
    console.log(id);
      const {data}=await axios({
        url:'http://liufusong.top:8080/houses?cityId=AREA%7Cdbf46d32-7e76-1196&stat=1&end=10 '
      })
      console.log(data);
     this.info=data.body.list
   },
  methods: {},
}
</script>

<style scoped lang="less">
* {
  margin: 0;
  padding: 0;
}
.top {
  display: flex;
  height: 100px;
  background-color: rgb(5, 201, 87);

  .back {
    font-size: 18px;
    color: #666;

    left: 10px;
    top: 0;
    transform: scale(1, 1.5);
  }
  h2 {
    padding-left: 150px;
    text-align: center;
    color: #fff;
  }
 
}
 .banner {
    height: 200px;
    background-color: pink;
  }
</style>
